package cn.ytzb.docker.controller;

import cn.ytzb.docker.entity.User;
import cn.ytzb.docker.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    UserService userService;

    @GetMapping("/hello")
    public User hello() {
        String st = "hello world 12";
        User user = userService.queryById(1);
        return user;
    }

    public void b() {
        String a = "a";
    }
}
